<?php
/**
 * spsNewsletter config view
 * 
 * @author Satyan Shah <joomlaDesign@modernbridge.com>
 * @link http://www.modernbridge.com
 * @license GNU/GPL
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();

jimport( 'joomla.application.component.view' );


class spsNewslettersViewspsNewsletterConfig extends JView
{
	
	function display($tpl = null)
	{
		JToolBarHelper::title( JText::_( 'spsNewsletter Configuration Parameters' ));
		JToolBarHelper::save();
		JToolBarHelper::cancel();
		// pull parameters
 		$params = &JComponentHelper::getParams( 'com_spsnewsletter' );
		// load up parameters for use in the template
		$fromName = $params->get('fromName');
		$fromEmail = $params->get('fromEmail');
		$testEmailAddress = $params->get('testEmailAddress');
		$this->assignRef('fromName',$fromName);
		$this->assignRef('fromEmail',$fromEmail);
		$this->assignRef('testEmailAddress',$testEmailAddress);
		parent::display($tpl);
	}
}
